import { render } from "../../view-components/default";
import { useSelector, useDispatch } from 'react-redux'
import { setApp } from '../../../../store/creatorSlice';

function AppView() {
  const { app } = useSelector(state => state.creator)
  let list = app.list
  return (
    <div>
      {
        list.map((item) => {
          let Item = render(item.name)
          return <Item key={item.id} />
        })
      }
    </div>
  );
}

export default AppView;
